<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/ble_services/ble_dis.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('ble__dis_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/ble_services/ble_dis.h</div>  </div>
</div>
<div class="contents">
<a href="ble__dis_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision$</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef BLE_DIS_H__</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define BLE_DIS_H__</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="ble__srv__common_8h.html">ble_srv_common.h</a>&quot;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">// Vendor ID Source values</span>
<a name="l00033"></a><a class="code" href="group__ble__sdk__srv__dis.html#ga2a573ffb57010f1c6d913783684bf6e4">00033</a> <span class="preprocessor">#define BLE_DIS_VENDOR_ID_SRC_BLUETOOTH_SIG   1                 </span>
<a name="l00034"></a><a class="code" href="group__ble__sdk__srv__dis.html#ga9594abefbf537a6efdb26c8844f84ba8">00034</a> <span class="preprocessor">#define BLE_DIS_VENDOR_ID_SRC_USB_IMPL_FORUM  2                 </span>
<a name="l00037"></a>00037 <span class="preprocessor">typedef struct</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>{
<a name="l00039"></a><a class="code" href="structble__dis__sys__id__t.html#a4be5ade910055222a8ba6eea783e8783">00039</a>     uint64_t <a class="code" href="structble__dis__sys__id__t.html#a4be5ade910055222a8ba6eea783e8783">manufacturer_id</a>;                                   
<a name="l00040"></a><a class="code" href="structble__dis__sys__id__t.html#af8da1d50631805cfe53b7ed773a6b589">00040</a>     uint32_t <a class="code" href="structble__dis__sys__id__t.html#af8da1d50631805cfe53b7ed773a6b589">organizationally_unique_id</a>;                        
<a name="l00041"></a>00041 } <a class="code" href="structble__dis__sys__id__t.html" title="System ID parameters.">ble_dis_sys_id_t</a>;
<a name="l00042"></a>00042 
<a name="l00044"></a>00044 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00045"></a>00045 {
<a name="l00046"></a><a class="code" href="structble__dis__reg__cert__data__list__t.html#a831226e914e2d07f1224fe2348f62e5c">00046</a>     uint8_t *  <a class="code" href="structble__dis__reg__cert__data__list__t.html#a831226e914e2d07f1224fe2348f62e5c">p_list</a>;                                          
<a name="l00047"></a><a class="code" href="structble__dis__reg__cert__data__list__t.html#acd6a7a23d3b336183fb40ae740cc1527">00047</a>     uint8_t    <a class="code" href="structble__dis__reg__cert__data__list__t.html#acd6a7a23d3b336183fb40ae740cc1527">list_len</a>;                                        
<a name="l00048"></a>00048 } <a class="code" href="structble__dis__reg__cert__data__list__t.html" title="IEEE 11073-20601 Regulatory Certification Data List Structure.">ble_dis_reg_cert_data_list_t</a>;
<a name="l00049"></a>00049 
<a name="l00051"></a>00051 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00052"></a>00052 {
<a name="l00053"></a><a class="code" href="structble__dis__pnp__id__t.html#a60b6889d45981438b68d1de0d4d4718f">00053</a>     uint8_t  <a class="code" href="structble__dis__pnp__id__t.html#a60b6889d45981438b68d1de0d4d4718f">vendor_id_source</a>;                                  
<a name="l00054"></a><a class="code" href="structble__dis__pnp__id__t.html#abd60aba7846c925f784c3e89e2f54e45">00054</a>     uint16_t <a class="code" href="structble__dis__pnp__id__t.html#abd60aba7846c925f784c3e89e2f54e45">vendor_id</a>;                                         
<a name="l00055"></a><a class="code" href="structble__dis__pnp__id__t.html#a215e5feaef08c77d8e9f17ab421e8a66">00055</a>     uint16_t <a class="code" href="structble__dis__pnp__id__t.html#a215e5feaef08c77d8e9f17ab421e8a66">product_id</a>;                                        
<a name="l00056"></a><a class="code" href="structble__dis__pnp__id__t.html#add66cd1e2fe782e92652f5f53cef73c8">00056</a>     uint16_t <a class="code" href="structble__dis__pnp__id__t.html#add66cd1e2fe782e92652f5f53cef73c8">product_version</a>;                                   
<a name="l00057"></a>00057 } <a class="code" href="structble__dis__pnp__id__t.html" title="PnP ID parameters.">ble_dis_pnp_id_t</a>;
<a name="l00058"></a>00058 
<a name="l00062"></a>00062 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00063"></a>00063 {
<a name="l00064"></a><a class="code" href="structble__dis__init__t.html#a02a650cde3f65fc67f65b5fb4cd33425">00064</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#a02a650cde3f65fc67f65b5fb4cd33425">manufact_name_str</a>;           
<a name="l00065"></a><a class="code" href="structble__dis__init__t.html#a6a7f9f8488819d498650e61d6f3e7943">00065</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#a6a7f9f8488819d498650e61d6f3e7943">model_num_str</a>;               
<a name="l00066"></a><a class="code" href="structble__dis__init__t.html#a0c16fc82f6cadca2324ea7e47a9012eb">00066</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#a0c16fc82f6cadca2324ea7e47a9012eb">serial_num_str</a>;              
<a name="l00067"></a><a class="code" href="structble__dis__init__t.html#af569ccba2c37863c84d7c6bc59fafea1">00067</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#af569ccba2c37863c84d7c6bc59fafea1">hw_rev_str</a>;                  
<a name="l00068"></a><a class="code" href="structble__dis__init__t.html#a7dc4439cfb3bb894944eb37a7b2ddc48">00068</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#a7dc4439cfb3bb894944eb37a7b2ddc48">fw_rev_str</a>;                  
<a name="l00069"></a><a class="code" href="structble__dis__init__t.html#a272a54a577fefcb2b60324520ee133f2">00069</a>     <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>             <a class="code" href="structble__dis__init__t.html#a272a54a577fefcb2b60324520ee133f2">sw_rev_str</a>;                  
<a name="l00070"></a><a class="code" href="structble__dis__init__t.html#a853998bc0e7852a4eb9ac0fa812b95fc">00070</a>     <a class="code" href="structble__dis__sys__id__t.html" title="System ID parameters.">ble_dis_sys_id_t</a> *             <a class="code" href="structble__dis__init__t.html#a853998bc0e7852a4eb9ac0fa812b95fc">p_sys_id</a>;                    
<a name="l00071"></a><a class="code" href="structble__dis__init__t.html#a69ba763dc9d6010e87359a1002c48551">00071</a>     <a class="code" href="structble__dis__reg__cert__data__list__t.html" title="IEEE 11073-20601 Regulatory Certification Data List Structure.">ble_dis_reg_cert_data_list_t</a> * <a class="code" href="structble__dis__init__t.html#a69ba763dc9d6010e87359a1002c48551">p_reg_cert_data_list</a>;        
<a name="l00072"></a><a class="code" href="structble__dis__init__t.html#a5b5d4c8fc2a17cfa2e94e1c0b55f3672">00072</a>     <a class="code" href="structble__dis__pnp__id__t.html" title="PnP ID parameters.">ble_dis_pnp_id_t</a> *             <a class="code" href="structble__dis__init__t.html#a5b5d4c8fc2a17cfa2e94e1c0b55f3672">p_pnp_id</a>;                    
<a name="l00073"></a><a class="code" href="structble__dis__init__t.html#aa3268ab4659686cb4202651e071af265">00073</a>     <a class="code" href="structble__srv__security__mode__t.html" title="Security settings structure.">ble_srv_security_mode_t</a>        <a class="code" href="structble__dis__init__t.html#aa3268ab4659686cb4202651e071af265">dis_attr_md</a>;                 
<a name="l00074"></a>00074 } <a class="code" href="structble__dis__init__t.html" title="Device Information Service init structure. This contains all possible characteristics needed for init...">ble_dis_init_t</a>;
<a name="l00075"></a>00075 
<a name="l00087"></a>00087 uint32_t <a class="code" href="group__ble__sdk__srv__dis.html#ga472c83dfe2ad977d76b664095a4991cd" title="Initialize the Device Information Service.">ble_dis_init</a>(<span class="keyword">const</span> <a class="code" href="structble__dis__init__t.html" title="Device Information Service init structure. This contains all possible characteristics needed for init...">ble_dis_init_t</a> * p_dis_init);
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="preprocessor">#endif // BLE_DIS_H__</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="ble__dis_8h.html">ble_dis.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
